<template>
    <div class="app-container">
        <div class="error-box">
            <img src="../../../static/img/err.gif" alt="Girl has dropped her ice cream.">
            <div class="tips">
                <p class="oops">OOPS!</p>
                <p class="info1">The Page you are looking for into the sea. <br/>[Error Code: 500]</p>
                <p class="info2">Please check that the URL you entered is correct, or click the button below to return to the homepage.</p>
                <div class="btn" @click="goHome">Back to home</div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'error',
        data() {
            return {
            }
        },
        methods: {
            goHome(){
                window.location.href = "/uias";
            }
        }
    }
</script>

<style scoped>
    .error-box {
        height: 450px;
        width: 600px;
        margin: 100px auto;
    }

    .error-box img {
        float: left;
        width: 313px;
        height: 428px;
    }

    .error-box .tips {
        position: relative;
        float: left;
        width: 250px;
        margin: 100px 0 0 30px;
    }

    .error-box .tips .oops {
        font-size: 32px;
        font-weight: bold;
        line-height: 40px;
        color: #1482f0;
        opacity: 0;
        margin-bottom: 20px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
    }

    .error-box .tips .info1 {
        font-size: 20px;
        line-height: 24px;
        color: #222;
        font-weight: bold;
        opacity: 0;
        margin-bottom: 10px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.1s;
        animation-fill-mode: forwards;
    }

    .error-box .tips .info2 {
        font-size: 13px;
        line-height: 21px;
        color: grey;
        opacity: 0;
        margin-bottom: 30px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
    }

    .error-box .tips .btn {
        display: block;
        float: left;
        width: 110px;
        height: 36px;
        background: #1482f0;
        border-radius: 100px;
        text-align: center;
        color: #ffffff;
        opacity: 0;
        font-size: 14px;
        line-height: 36px;
        cursor: pointer;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.3s;
        animation-fill-mode: forwards;
    }

    @keyframes slideUp {
        0% {
            transform: translateY(60px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

</style>

